﻿<navigation:Page x:Class="ExampleApplication.Examples.AddFeatures" 
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
           xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
           xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
           mc:Ignorable="d"
           xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation"
           d:DesignWidth="640" d:DesignHeight="480"
           Title="AddFeatures Page"
           xmlns:deepearth="http://deepearth.codeplex.com/xaml"
           xmlns:nearmap ="clr-namespace:DeepEarth.Map.TileSources;assembly=DeepEarth.TileSources.NearMap">
    <Grid x:Name="LayoutRoot">
        <deepearth:Map x:Name="map">
            <deepearth:Map.View>
                <deepearth:MapView>
                    <deepearth:MapView.TileSourceProvider>
                        <nearmap:NearMapTileSourceProvider Mode="PhotoMap"></nearmap:NearMapTileSourceProvider>
                    </deepearth:MapView.TileSourceProvider>
                </deepearth:MapView>
            </deepearth:Map.View>

            <deepearth:Pushpin Position="lon=20, lat=20" PositionOrigin="0.5,1"></deepearth:Pushpin>
            <Border Background="White" deepearth:Layer.Position="lon=12, lat=34" deepearth:Layer.PositionOrigin="0.5,0.5">
                <TextBlock Text="Hello" FontSize="15" ></TextBlock>
            </Border>
            
            <StackPanel deepearth:Layer.Position="lon=-150, lat=-30" deepearth:Layer.PositionOrigin="0.5,0.5">
                <Button Content="Does nothing!"></Button>
                <Button Content="Another Button"></Button>
            </StackPanel>

            <deepearth:Pushpin Position="lon=45, lat=45" PositionOrigin="0.5,1" Fill="Yellow"></deepearth:Pushpin>
            <deepearth:Pushpin Position="lon=-45, lat=-45" PositionOrigin="0.5,1" Fill="Green" Scale="2"></deepearth:Pushpin>
            <deepearth:Pushpin Position="lon=153, lat=25" PositionOrigin="0.5,1" Fill="White"></deepearth:Pushpin>

        </deepearth:Map>
                
        <deepearth:NavigationPanel Map="{Binding ElementName=map}" />       
    </Grid>
</navigation:Page>